github.com/andybalholm/brotli.bitWriter.writeBits (method)
51 uses
github.com/andybalholm/brotli (current package)
bitwriter.go#L19: func (w *bitWriter) writeBits(nb uint, b uint64) {
bitwriter.go#L37: w.writeBits(1, 1)
bitwriter.go#L39: w.writeBits(1, 0)
brotli_bit_stream.go#L656: bw.writeBits(4, 1)
brotli_bit_stream.go#L657: bw.writeBits(max_bits, uint64(symbols[0]))
brotli_bit_stream.go#L670: bw.writeBits(2, 1)
brotli_bit_stream.go#L672: bw.writeBits(2, uint64(count)-1) /* NSYM - 1 */
brotli_bit_stream.go#L687: bw.writeBits(max_bits, uint64(symbols[0]))
brotli_bit_stream.go#L688: bw.writeBits(max_bits, uint64(symbols[1]))
brotli_bit_stream.go#L690: bw.writeBits(max_bits, uint64(symbols[0]))
brotli_bit_stream.go#L691: bw.writeBits(max_bits, uint64(symbols[1]))
brotli_bit_stream.go#L692: bw.writeBits(max_bits, uint64(symbols[2]))
brotli_bit_stream.go#L694: bw.writeBits(max_bits, uint64(symbols[0]))
brotli_bit_stream.go#L695: bw.writeBits(max_bits, uint64(symbols[1]))
brotli_bit_stream.go#L696: bw.writeBits(max_bits, uint64(symbols[2]))
brotli_bit_stream.go#L697: bw.writeBits(max_bits, uint64(symbols[3]))
brotli_bit_stream.go#L720: bw.writeBits(uint(kZeroRepsDepth[reps]), kZeroRepsBits[reps])
brotli_bit_stream.go#L723: bw.writeBits(uint(kCodeLengthDepth[value]), uint64(kCodeLengthBits[value]))
brotli_bit_stream.go#L730: bw.writeBits(uint(kCodeLengthDepth[value]), uint64(kCodeLengthBits[value]))
brotli_bit_stream.go#L734: bw.writeBits(uint(kNonZeroRepsDepth[reps]), kNonZeroRepsBits[reps])
compress_fragment_two_pass.go#L226: bw.writeBits(1, 0)
compress_fragment_two_pass.go#L236: bw.writeBits(2, uint64(nibbles)-4)
compress_fragment_two_pass.go#L237: bw.writeBits(nibbles*4, uint64(len)-1)
encoder.go#L20: e.bw.writeBits(4, 15)
encoder.go#L26: e.bw.writeBits(2, 3) // islast + isempty
encoder.go#L108: e.bw.writeBits(13, 0)
encoder.go#L131: e.bw.writeBits(uint(commandDepths[command]), uint64(commandBits[command]))
encoder.go#L133: e.bw.writeBits(uint(kInsExtra[insertCode]), uint64(m.Unmatched)-uint64(kInsBase[insertCode]))
encoder.go#L136: e.bw.writeBits(uint(kCopyExtra[copyCode]), uint64(m.Length)-uint64(kCopyBase[copyCode]))
encoder.go#L141: e.bw.writeBits(uint(literalDepths[c]), uint64(literalBits[c]))
encoder.go#L147: e.bw.writeBits(uint(distanceDepths[distCode.code]), uint64(distanceBits[distCode.code]))
encoder.go#L149: e.bw.writeBits(distCode.nExtra, distCode.extraBits)
encoder.go#L157: e.bw.writeBits(2, 3) // islast + isempty
encoder_fast.go#L31: e.bw.writeBits(4, 15)
encoder_fast.go#L69: e.bw.writeBits(2, 3) // islast + isempty
encoder_fast.go#L82: e.bw.writeBits(13, 0)
encoder_fast.go#L134: e.bw.writeBits(uint(commandDepths[command]), uint64(commandBits[command]))
encoder_fast.go#L139: e.bw.writeBits(uint(commandDepths[command]), uint64(commandBits[command]))
encoder_fast.go#L140: e.bw.writeBits(uint(kInsExtra[insertCode]), uint64(m.Unmatched)-uint64(kInsBase[insertCode]))
encoder_fast.go#L147: e.bw.writeBits(uint(literalDepths[c]), uint64(literalBits[c]))
encoder_fast.go#L157: e.bw.writeBits(uint(distanceDepths[distCode.code]), uint64(distanceBits[distCode.code]))
encoder_fast.go#L159: e.bw.writeBits(distCode.nExtra, distCode.extraBits)
encoder_fast.go#L170: e.bw.writeBits(uint(commandDepths[command]), uint64(commandBits[command]))
encoder_fast.go#L175: e.bw.writeBits(uint(commandDepths[command]), uint64(commandBits[command]))
encoder_fast.go#L176: e.bw.writeBits(uint(kCopyExtra[copyCode]), uint64(m.Length-2)-uint64(kCopyBase[copyCode]))
encoder_fast.go#L181: e.bw.writeBits(uint(commandDepths[command]), uint64(commandBits[command]))
encoder_fast.go#L182: e.bw.writeBits(uint(kCopyExtra[copyCode]), uint64(m.Length-2)-uint64(kCopyBase[copyCode]))
encoder_fast.go#L183: e.bw.writeBits(uint(distanceDepths[0]), uint64(distanceBits[0]))
encoder_fast.go#L193: e.bw.writeBits(2, 3) // islast + isempty
entropy_encode_static.go#L786: bw.writeBits(32, 0x55555554)
entropy_encode_static.go#L787: bw.writeBits(8, 0xFF)
 |
The pages are generated with Golds v0.8.4. (GOOS=linux GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |